//
//  GameCommentsListApi.m
//  gamebox_qpp
//
//  Created by 赵隆杰 on 2021/12/20.
//

#import "GameCommentsListApi.h"

@implementation GameCommentsListApi
{
    NSString *_gameId;
}

- (instancetype)initWithGameId:(NSString *)gameId
{
    if (self = [super init])
    {
        _gameId = gameId;
    }
    
    return self;
}

- (NSString *)requestUrl {
    NSString *url = [NSString stringWithFormat:@"ios/game-comment/selectByGameId"];
    return url;
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodGET;
}

- (id)requestArgument {
    
    NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
    
    if (_gameId.integerValue) {
        params[@"gameId"] = _gameId;
    }
    params[@"pageNum"] = @(self.pageNum);
    params[@"pageSize"] = @(self.pageSize);
    
    return params;
}


@end
